package com.czh.springboot04.service;

import com.czh.springboot04.entity.Appointment;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AppointmentService {

    int insertAppointment(Appointment appointment);
    int updateAppointmentById(Appointment appointment);
    Appointment selectAppointmentById(Integer id);
    PageInfo<Appointment> selectAppointmentAll(Integer consultId,
                                               Integer userId,
                                               Integer status,
                                               Integer pageNum,
                                               Integer pageSize);
    int deleteAppointmentById(Integer id);
    int deleteAppointmentByList(List<Integer> idList);
}
